/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.spring66.training.service.impl;

import com.spring66.training.service.Clinic;
import com.spring66.training.dao.VetDao;
import com.spring66.training.entity.Vet;
import java.util.Collection;
import org.springframework.dao.DataAccessException;

/**
 *
 * @author TwinP
 */
public class ClinicImpl implements Clinic {

    private VetDao vetDao;

    //@Transactional(readOnly = true)
    @Override
    public Collection<Vet> getVets() throws DataAccessException {
        return getVetDao().readAll();
    }

    /**
     * @return the vetDao
     */
    public VetDao getVetDao() {
        return vetDao;
    }

    /**
     * @param vetDao the vetDao to set
     */
    public void setVetDao(VetDao vetDao) {
        this.vetDao = vetDao;
    }

}

